// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.FundsPayOrder;
import com.fowo.api.model.funds.pay.order.FundsPayOrderItemVo;
import com.fowo.api.model.funds.pay.order.FundsPayOrderSearchParamPo;
import com.fowo.api.model.funds.pay.order.FundsPayOrderVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FundsPayOrderMapper extends BaseMapper<FundsPayOrder> {
  Page<FundsPayOrderItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") FundsPayOrderSearchParamPo search
  );
  List<OptionItem<FundsPayOrderItemVo>> searchOptions(
    @Param("search") FundsPayOrderSearchParamPo search
  );
  List<FundsPayOrderItemVo> search(
    @Param("search") FundsPayOrderSearchParamPo search
  );
  Date searchLastUpdateTime(@Param("search") FundsPayOrderSearchParamPo search);
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") FundsPayOrderSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") FundsPayOrderSearchParamPo search);
  Long getIdByAssociatedOrder(@Param("associatedOrder") String associatedOrder);

  List<Long> getIdsByAssociatedOrder(@Param("list") List<String> list);

  String getAssociatedOrderById(@Param("id") Long id);

  List<Map<String, Object>> getAssociatedOrderByIds(
    @Param("ids") List<Long> ids
  );
  FundsPayOrderVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<FundsPayOrderItemVo> allType(
    @Param("search") FundsPayOrderSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allTypeIds(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long allTypeCount(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 全部分页
   */
  Page<FundsPayOrderItemVo> allTypePage(
    @Param("page") Page page,
    @Param("search") FundsPayOrderSearchParamPo search
  );
  Date allTypeLastUpdateTime(
    @Param("search") FundsPayOrderSearchParamPo search
  );
  /**
   * 待审批
   */
  List<FundsPayOrderItemVo> approval(
    @Param("search") FundsPayOrderSearchParamPo search
  );

  /**
   * 获取待审批编号列表
   */
  List<Long> approvalIds(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 获取待审批的总数
   */
  Long approvalCount(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 待审批分页
   */
  Page<FundsPayOrderItemVo> approvalPage(
    @Param("page") Page page,
    @Param("search") FundsPayOrderSearchParamPo search
  );
  Date approvalLastUpdateTime(
    @Param("search") FundsPayOrderSearchParamPo search
  );
  /**
   * 待付款
   */
  List<FundsPayOrderItemVo> obligation(
    @Param("search") FundsPayOrderSearchParamPo search
  );

  /**
   * 获取待付款编号列表
   */
  List<Long> obligationIds(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 获取待付款的总数
   */
  Long obligationCount(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 待付款分页
   */
  Page<FundsPayOrderItemVo> obligationPage(
    @Param("page") Page page,
    @Param("search") FundsPayOrderSearchParamPo search
  );
  Date obligationLastUpdateTime(
    @Param("search") FundsPayOrderSearchParamPo search
  );
  /**
   * 已完成
   */
  List<FundsPayOrderItemVo> completed(
    @Param("search") FundsPayOrderSearchParamPo search
  );

  /**
   * 获取已完成编号列表
   */
  List<Long> completedIds(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 获取已完成的总数
   */
  Long completedCount(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 已完成分页
   */
  Page<FundsPayOrderItemVo> completedPage(
    @Param("page") Page page,
    @Param("search") FundsPayOrderSearchParamPo search
  );
  Date completedLastUpdateTime(
    @Param("search") FundsPayOrderSearchParamPo search
  );
  /**
   * 已驳回
   */
  List<FundsPayOrderItemVo> reject(
    @Param("search") FundsPayOrderSearchParamPo search
  );

  /**
   * 获取已驳回编号列表
   */
  List<Long> rejectIds(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 获取已驳回的总数
   */
  Long rejectCount(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 已驳回分页
   */
  Page<FundsPayOrderItemVo> rejectPage(
    @Param("page") Page page,
    @Param("search") FundsPayOrderSearchParamPo search
  );
  Date rejectLastUpdateTime(@Param("search") FundsPayOrderSearchParamPo search);
  /**
   * 已作废
   */
  List<FundsPayOrderItemVo> cancellation(
    @Param("search") FundsPayOrderSearchParamPo search
  );

  /**
   * 获取已作废编号列表
   */
  List<Long> cancellationIds(
    @Param("search") FundsPayOrderSearchParamPo search
  );

  /**
   * 获取已作废的总数
   */
  Long cancellationCount(@Param("search") FundsPayOrderSearchParamPo search);

  /**
   * 已作废分页
   */
  Page<FundsPayOrderItemVo> cancellationPage(
    @Param("page") Page page,
    @Param("search") FundsPayOrderSearchParamPo search
  );
  Date cancellationLastUpdateTime(
    @Param("search") FundsPayOrderSearchParamPo search
  );
}
